package com.authine.cloudpivot.ext.model.bosi;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: Peter Lee
 * @Date: 2020/10/20 18:19
 * @Describe: bosi 返回封装
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BsscResp {

    private String respCode;
    private String respMsg;
    private String data;
    private String sign;

    public static BsscResp invalid(String status) {
        return BsscResp.builder().respCode("1").respMsg(status + " invalid").build();
    }

    public static BsscResp bssResp(String respMsg, String data, String sign) {
        return BsscResp.builder().respCode("0").respMsg(respMsg).data(data).sign(sign).build();
    }
}
